package com.hntxk.cqzd.diacrisis.service;

import com.hntxk.core.framework.model.ResponseModel;
import com.hntxk.core.framework.model.ResultModel;
import com.hntxk.core.framework.service.IBaseService;
import com.hntxk.cqzd.diacrisis.entity.TblDiacrisisInfo;
import com.hntxk.cqzd.diacrisis.model.DiacrisisAllModel;
import com.hntxk.cqzd.diacrisis.model.his.HisModel;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.text.ParseException;
import java.util.Date;

public interface DiacrisisInfoService extends IBaseService<TblDiacrisisInfo> {

    ResultModel<DiacrisisAllModel> insert(DiacrisisAllModel diacrisisAllModel, MultipartFile[] files) throws IOException, ParseException;

    ResultModel<DiacrisisAllModel> insertPhone(DiacrisisAllModel diacrisisAllModel, MultipartFile[] files) throws IOException, ParseException;

    ResultModel<DiacrisisAllModel> update(DiacrisisAllModel diacrisisAllModel, MultipartFile[] files)throws IOException;

    TblDiacrisisInfo getById(Long id);

    ResponseModel getAllInfo(String param, String isValid);

    DiacrisisAllModel getDiacrisisInfo (Long infoId);

    HisModel getByHisId(Long id);

    HisModel getByCardCode(String id);

    void deleteOneWeek();

    String getByCode(String code, String date);
}
